<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="/tld/dictionary" prefix="dictionary"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>撮合交易</title>
<link rel="stylesheet" href="${ctx}/static/css/style.css" type="text/css" /> 
<link rel="stylesheet" href="${ctx}/static/css/style1.css" type="text/css" /> 
<link rel="stylesheet" href="${ctx}/static/css/kongjian.css" type="text/css" />
<link rel="stylesheet" href="${ctx}/static/css/jquery.ui.all.css" />
<link rel="stylesheet" href="${ctx}/static/css/m.css" type="text/css" />
<script src="${ctx}/static/script/jquery-1.4.min.js" type="text/javascript"></script>
<script src="${ctx}/static/script/jquery.ui.core.js"></script>
<script src="${ctx}/static/script/jquery.ui.datepicker.js"></script>
<script src="${ctx}/static/script/jsCoreUtil.js"></script>
<script type="text/javascript">
	function mTab_iframe(src,n){
	    m = document.getElementById("tabT").childNodes;
        for(var i = 0;i < m.length;i++){
		    if(i == n){
			    m[i].style.background="#c6defa";
			}else{
                m[i].style.background="#fff";
			}
        };
        document.getElementById("mainFrame").src = src;
	}
    $(function(){
			$("#mainFrame").load(function(){     
				var m = $(this).contents().find("body").height()+30;
				$(this).height(m);     
			}); 
        });
</script>


<script>
//子Iframe js 初始化区域 
var map = new CoreMap(); 
var recommendmap = new CoreMap(); 
var RecommValueMap = new CoreMap(); //撮合勾选数据
var HasRecommValueMap = new CoreMap(); //已撮合数据
var RecommendErrorData = new CoreMap(); //推荐比例大于可推荐比例数据存储器
var dictionary = new CoreMap();
$(document).ready(function(){
	dictionary=dictionaryInit();
});
function getRecommValueMap(){
	return RecommValueMap;
}

</script>
</head>

<body style="margin:10px;">
<form:form id="mainForm" action="${ctx}/backsection/backsection_list" modelAttribute="backSectionForm" method="post">
<input type="hidden" id="investAmt" name="investAmt" value="${backSectionForm.investInfo.investAmt}"/>
<input type="hidden" id="invsetId" name="invsetId" value="${backSectionForm.investInfo.id}"/>
<input type="hidden" id="recommentAmt" name="recommentAmt" value="${backSectionForm.recommentAmt}"/>
<input type="hidden" id="pagetempdata" name="pagetempdata" />
<input type="hidden" id="returnId" name="returnId" value="${backSectionForm.id}"/>
<input type="hidden" id="deliveryDate" name="deliveryDate"  value="<fmt:formatDate value="${backSectionForm.returnDate}"   pattern="yyyy-MM-dd" type="date" dateStyle="long" />" />
<input type="hidden" id="payType"  name="payType" value="${backSectionForm.payType}"/>
	
<div style=" text-align:left; height:30px; padding:0 10px; line-height:30px; border:#3b97e4 solid 1px;">
投资编号：${backSectionForm.investInfo.id} &nbsp;
客户编号：${backSectionForm.investInfo.customerInfo.customerCode} &nbsp;
客户姓名：${backSectionForm.investInfo.customerInfo.cnName} &nbsp;
回款可撮合金额：<fmt:formatNumber value="${backSectionForm.recommentAmt}" pattern="##,###.##"/>&nbsp;
交割日期：<fmt:formatDate value="${backSectionForm.returnDate}"   pattern="yyyy-MM-dd" type="date" dateStyle="long" />
</div>
<div style="height:10px;"></div>
<!-- onclick="mTab_iframe('${ctx}/backsection/backsection_tradable','0')" -->
<!-- onclick="mTab_iframe('${ctx}/backsection/backsection_hasrecommend','1')"  -->
<p id="tabT"><a id="a_m1"  class="a_m">可交易债权</a><a id="a_m2" class="a_m" style="background:#fff; border-left:0;">已撮合债权</a></p>
<div style="clear:both;"></div>
<div style=" border:#3b97e4 solid 1px; padding:10px 0 20px;">
	<iframe id="mainFrame" src="${ctx}/backsection/backsection_tradable" scrolling="no" frameborder="0" width="100%" height="500px"></iframe>
</div>
</form:form>
</body>
</html>

